Aggregate Schema

The Aggregate Schema manipulate step allows you to apply functions such as AVERAGE, SUM, COUNT, MAX or MIN to specific columns within a schema. The results of the step will completely replace the previous data stored in the Schema.

 

The table below provides the example of calculating the average of numbers under a specific column. Each value in this column will be updated with the average value.

 

Source Data Calculated Data
4 3.67
5 3.67
2 3.67

 

To configure this manipulate step, follow the instructions below:

 

  1. In the Admin Navigation tree, select Interfaces > InterfaceName > Tasks > TaskName > Steps.
  2. On the toolbar, click New >New Manipulate Step.

Creating a New Manipulate Step

  1. Navigate to the Manipulate Schema section and select Aggregate Schema.

Manipulate Schema Section

  1. In the Aggregate Schema work area, fill in the following fields:

 

Fields Description

Name

Provide a distinctive name for this step.

Is Active

Select the check box to engage the scheduler for this step.

Order of Execution

Enter the order in which this step should be executed.

Filter Expression

Optional. Use this filed to filter data from the source database prior to inserting it into the Schema table.

Sort Expression

Optional. Use this field to sort data from the source database prior to inserting it into the Schema table.

Stop interface execution if query failed

Optional. If enabled, the system will stop any data manipulation if the query returns an error.

Save Schema (enabled per interface)

If selected, the schema is created for this step.

Expression

Enter the expression that is used for calculation. The following operators are supported:

  • Sum
  • Count
  • Average
  • Min
  • Max

Example: Col1=Sum,Col3=Average,Col5=Max.

 

  1. Click the Save button.